﻿using System.Collections.Generic;

namespace GrainManage.Entities.Weather
{
    public class YahooWeather
    {
        public class Wind
        {
            public int? chill { get; set; }
            public int? direction { get; set; }
            public int? speed { get; set; }
        }

        public class Astronomy
        {
            public string sunrise { get; set; }
            public string sunset { get; set; }
        }

        public class Atmosphere
        {
            public int? humidity { get; set; }
            public decimal? visibility { get; set; }
            public decimal? pressure { get; set; }
            public int? rising { get; set; }
        }

        public class Forecast
        {
            public string date { get; set; }
            public int? day { get; set; }
            public int? code { get; set; }
            public string text { get; set; }
            public int? low { get; set; }
            public int? high { get; set; }
            public string image_large { get; set; }
            public string image_small { get; set; }
        }

        public string pub { get; set; }
        public string name { get; set; }
        public Wind wind { get; set; }
        public Astronomy astronomy { get; set; }
        public Atmosphere atmosphere { get; set; }
        public List<Forecast> forecasts { get; set; }
    }
}
